import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { store, key } from './store'
import { useAntd } from './plugins/ant-design-vue'
import Api from './api'

// const a=1

// 创建并挂载
const app = createApp(App)
// var a=1;
// 应用路由
app.use(router)

// 应用vuex
app.use(store, key)

// 应用 antd
useAntd(app)

app.mount('#app')

// 全局挂载Api接口
app.config.globalProperties.$api = Api
